package za.co.dylanjaneke.airdownloader.command
{
	import za.co.dylanjaneke.airdownloader.events.ShowWeekEvent;
	import za.co.dylanjaneke.airdownloader.model.HomeScreenPM;

	/**
	 * Author: Dylan Janeke.
	 */
	[Name("showWeekCommand")]
	public class ShowWeekCommand
	{
		[Inject]
		public var homeScreenPM:HomeScreenPM;
		
		[Observer]
		public function handleShowWeekEvent(event:ShowWeekEvent): void
		{
			homeScreenPM.switchView(HomeScreenPM.WEEK);
		}
	}
}